﻿namespace FingerTip.Infrastructure.HttpClient
{
    public abstract class BaseClient
    {
        public virtual string HostUrl { get; }

        public virtual string Token { get; }
        public virtual string Version { get; }

        protected BaseClient() { }

        protected BaseClient(string hostUrl, string token,string version)
        {
            HostUrl = hostUrl;
            Token = token;
            Version = version;
        }

        public virtual Api Api
        {
            get
            {
                var api = new Api(HostUrl, Token, Version);
                return api;
            }
        }
    }
}
